package com.sara.util.loader;

import org.apache.http.HttpHost;
import org.apache.http.client.methods.HttpRequestBase;

public abstract class IMakeHttpHead {
	public void makeHttpHead(HttpRequestBase hr, boolean isgzip) {

	}

	public HttpHost getProxy(String targetUrl) {
		String proxyHost = android.net.Proxy.getDefaultHost();
		if (proxyHost == null) {
			return null;
		} else {
			int proxyPort = android.net.Proxy.getDefaultPort();
			if (proxyPort <= 0) {
				proxyPort = 80;
			}
			return new HttpHost(proxyHost, proxyPort);
		}
	}
}
